package com.kuang.mapper;

import com.kuang.entity.Department;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository //@Repository注解来标识数据访问层的实现类
public interface DepartmentMapper extends Mapper<DepartmentMapper> {

    /**
     *查询学院下拉框信息
     * **/
    List<Department> findAll();

    /**
     * 根据学院名称查询学院id
     * */
    Integer findDepartmentById(@Param("name") String name);
}
